package com.adingxiong.springsecurityoauth2.oauth.entity;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

import java.io.Serializable;
import java.util.Set;

/**
 * @ClassName MySecurityUser
 * @Description TODO
 * @Author xiongchao
 * @Date 2020/10/29 11:15
 **/
@Data
public class MySecurityUser implements Serializable {

    private String password;

    private String username;

    private Set<GrantedAuthority> authorities;

    private boolean accountNonExpired = true;

    private boolean accountNonLocked = true;

    private boolean credentialsNonExpired = true;

    private boolean enable = true;


}
